package org.example.ch02.p18;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double totalMoney = sc.nextDouble();
        int total=(int)(totalMoney*100);
        String[] units={"张","张","张","个","个","个","个"};
        int[] denominations = {1000, 500, 100, 50, 10, 2, 1};
        String[] names = {"十元", "五元", "一元", "五角", "一角", "贰分", "壹分"};
        for (int i=0;i<denominations.length;i++) {
            int count=total/denominations[i];
            System.out.println(count+" "+units[i]+names[i]);
            total%=denominations[i];
        }
        sc.close();
    }
}
